#include<bits/stdc++.h>

using namespace std;

int main() {
    int n = 121;
    for (int i = 1, m = sqrt(n); i <= m; i++) {//O(sqrt(n))
        if (n % i == 0) {
            cout << i << " ";
            if (n / i != i) {
                cout << n / i << " ";
            }
        }
    }
    cout << endl;


}